<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Core Plot (Mac OS): Source/CPTGraph.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="core-plot-logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Core Plot (Mac OS)
   
   </div>
   <div id="projectbrief">Cocoa plotting framework for Mac OS X and iOS</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Animation&#160;&&#160;Constants</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_c_p_t_graph_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">Source/CPTGraph.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_c_p_t_graph_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Abstract class</span>
<a name="l00002"></a>00002 <span class="preprocessor">#import &quot;CPTBorderedLayer.h&quot;</span>
<a name="l00003"></a>00003 <span class="preprocessor">#import &quot;<a class="code" href="_c_p_t_definitions_8h.html">CPTDefinitions.h</a>&quot;</span>
<a name="l00004"></a>00004 
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_axis_set.html" title="A container layer for the set of axes for a graph.">CPTAxisSet</a>;
<a name="l00008"></a>00008 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_legend.html" title="A graph legend.">CPTLegend</a>;
<a name="l00009"></a>00009 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_plot.html" title="An abstract plot class.">CPTPlot</a>;
<a name="l00010"></a>00010 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_plot_area_frame.html" title="A layer drawn on top of the graph layer and behind all plot elements.">CPTPlotAreaFrame</a>;
<a name="l00011"></a>00011 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_plot_space.html" title="Defines the coordinate system of a plot.">CPTPlotSpace</a>;
<a name="l00012"></a>00012 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_theme.html" title="Creates a CPTGraph instance formatted with a predefined style.">CPTTheme</a>;
<a name="l00013"></a>00013 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_text_style.html" title="Immutable wrapper for various text style properties.">CPTTextStyle</a>;
<a name="l00014"></a>00014 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_layer_annotation.html" title="Positions a content layer relative to an anchor point in a reference layer.">CPTLayerAnnotation</a>;
<a name="l00015"></a>00015 
<a name="l00018"></a>00018 
<a name="l00022"></a>00022 <span class="keyword">extern</span> <a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *<span class="keyword">const</span> <a class="code" href="group__notification.html#gacdcc79d94fa2215225c836c3b2f04565" title="Notification sent by various objects to tell the graph it should redraw itself.">CPTGraphNeedsRedrawNotification</a>;
<a name="l00023"></a>00023 
<a name="l00025"></a>00025 
<a name="l00029"></a><a class="code" href="_c_p_t_graph_8h.html#aca563382f979b1467d969276dad69a3b">00029</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="_c_p_t_graph_8h.html#aca563382f979b1467d969276dad69a3b" title="Enumeration of graph layers.">_CPTGraphLayerType</a> {
<a name="l00030"></a><a class="code" href="_c_p_t_graph_8h.html#aca563382f979b1467d969276dad69a3ba4fa13d7c45e1756ac5d4526315470952">00030</a>     <a class="code" href="_c_p_t_graph_8h.html#aca563382f979b1467d969276dad69a3ba4fa13d7c45e1756ac5d4526315470952" title="Minor grid lines.">CPTGraphLayerTypeMinorGridLines</a>, 
<a name="l00031"></a><a class="code" href="_c_p_t_graph_8h.html#aca563382f979b1467d969276dad69a3baf185ce3d1ce612a32f2a365d1397e891">00031</a>     <a class="code" href="_c_p_t_graph_8h.html#aca563382f979b1467d969276dad69a3baf185ce3d1ce612a32f2a365d1397e891" title="Major grid lines.">CPTGraphLayerTypeMajorGridLines</a>, 
<a name="l00032"></a><a class="code" href="_c_p_t_graph_8h.html#aca563382f979b1467d969276dad69a3ba5bcad2c4e8c2acdffc4f63215ee50ad3">00032</a>     <a class="code" href="_c_p_t_graph_8h.html#aca563382f979b1467d969276dad69a3ba5bcad2c4e8c2acdffc4f63215ee50ad3" title="Axis lines.">CPTGraphLayerTypeAxisLines</a>,      
<a name="l00033"></a><a class="code" href="_c_p_t_graph_8h.html#aca563382f979b1467d969276dad69a3bac5f3fdb7540e1a62cd2b5fb1b5c04188">00033</a>     <a class="code" href="_c_p_t_graph_8h.html#aca563382f979b1467d969276dad69a3bac5f3fdb7540e1a62cd2b5fb1b5c04188" title="Plots.">CPTGraphLayerTypePlots</a>,          
<a name="l00034"></a><a class="code" href="_c_p_t_graph_8h.html#aca563382f979b1467d969276dad69a3ba04f9e01bb43e8478f43b50e4bdae807c">00034</a>     <a class="code" href="_c_p_t_graph_8h.html#aca563382f979b1467d969276dad69a3ba04f9e01bb43e8478f43b50e4bdae807c" title="Axis labels.">CPTGraphLayerTypeAxisLabels</a>,     
<a name="l00035"></a><a class="code" href="_c_p_t_graph_8h.html#aca563382f979b1467d969276dad69a3baae98d09207dbb1b83a3da3fdc546fc01">00035</a>     <a class="code" href="_c_p_t_graph_8h.html#aca563382f979b1467d969276dad69a3baae98d09207dbb1b83a3da3fdc546fc01" title="Axis titles.">CPTGraphLayerTypeAxisTitles</a>      
<a name="l00036"></a>00036 }
<a name="l00037"></a>00037 <a class="code" href="_c_p_t_graph_8h.html#a516b503d3a0be51b245e936ae5049b07" title="Enumeration of graph layers.">CPTGraphLayerType</a>;
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <span class="preprocessor">#pragma mark -</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span>
<a name="l00041"></a><a class="code" href="interface_c_p_t_graph.html">00041</a> <span class="keyword">@interface </span><a class="code" href="interface_c_p_t_graph.html" title="An abstract graph class.">CPTGraph</a> : <a class="code" href="interface_c_p_t_bordered_layer.html" title="A layer with rounded corners.">CPTBorderedLayer</a> {
<a name="l00042"></a>00042     <span class="keyword">@private</span>
<a name="l00043"></a><a class="code" href="interface_c_p_t_graph.html#a0a20f07fd5ea7f8d9377234d19ce58b0">00043</a>     <a class="code" href="interface_c_p_t_plot_area_frame.html" title="A layer drawn on top of the graph layer and behind all plot elements.">CPTPlotAreaFrame</a> *<a class="code" href="interface_c_p_t_graph.html#a0a20f07fd5ea7f8d9377234d19ce58b0" title="The plot area frame.">plotAreaFrame</a>;
<a name="l00044"></a>00044     <a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSMutableArray_Class/Reference/Reference.html">NSMutableArray</a> *plots;
<a name="l00045"></a>00045     <a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSMutableArray_Class/Reference/Reference.html">NSMutableArray</a> *plotSpaces;
<a name="l00046"></a><a class="code" href="interface_c_p_t_graph.html#aa1cb1af066b4049a559ab7d511e85cd7">00046</a>     <a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *<a class="code" href="interface_c_p_t_graph.html#aa1cb1af066b4049a559ab7d511e85cd7" title="The title string. Default is nil.">title</a>;
<a name="l00047"></a><a class="code" href="interface_c_p_t_graph.html#a9e2606fb9a5656b03ff2f80be2c942bf">00047</a>     <a class="code" href="interface_c_p_t_text_style.html" title="Immutable wrapper for various text style properties.">CPTTextStyle</a> *<a class="code" href="interface_c_p_t_graph.html#a9e2606fb9a5656b03ff2f80be2c942bf" title="The text style of the title.">titleTextStyle</a>;
<a name="l00048"></a><a class="code" href="interface_c_p_t_graph.html#acfbe62cd094b4ab049b7676bbedcc523">00048</a>     <a class="code" href="_c_p_t_definitions_8h.html#a0712e0324db4c3da17882ca1d91de7cb" title="Locations around the edge of a rectangle.">CPTRectAnchor</a> <a class="code" href="interface_c_p_t_graph.html#acfbe62cd094b4ab049b7676bbedcc523" title="The location of the title with respect to the plot area frame. Default is top center.">titlePlotAreaFrameAnchor</a>;
<a name="l00049"></a><a class="code" href="group__graph_animation.html#ga0c07fa6435ce2971b3eabbdd636d1f2d">00049</a>     <a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a> <a class="code" href="group__graph_animation.html#ga0c07fa6435ce2971b3eabbdd636d1f2d" title="A vector giving the displacement of the title from the edge location.">titleDisplacement</a>;
<a name="l00050"></a>00050     <a class="code" href="interface_c_p_t_layer_annotation.html" title="Positions a content layer relative to an anchor point in a reference layer.">CPTLayerAnnotation</a> *titleAnnotation;
<a name="l00051"></a><a class="code" href="interface_c_p_t_graph.html#a99bd8248e51463b8a677a3c612a401d4">00051</a>     <a class="code" href="interface_c_p_t_legend.html" title="A graph legend.">CPTLegend</a> *<a class="code" href="interface_c_p_t_graph.html#a99bd8248e51463b8a677a3c612a401d4" title="The graph legend. Setting this property will automatically anchor the legend to the graph and positio...">legend</a>;
<a name="l00052"></a>00052     <a class="code" href="interface_c_p_t_layer_annotation.html" title="Positions a content layer relative to an anchor point in a reference layer.">CPTLayerAnnotation</a> *legendAnnotation;
<a name="l00053"></a><a class="code" href="interface_c_p_t_graph.html#a8a257064dc5f639ccf8a9ec1a96e2156">00053</a>     <a class="code" href="_c_p_t_definitions_8h.html#a0712e0324db4c3da17882ca1d91de7cb" title="Locations around the edge of a rectangle.">CPTRectAnchor</a> <a class="code" href="interface_c_p_t_graph.html#a8a257064dc5f639ccf8a9ec1a96e2156" title="The location of the legend with respect to the graph frame. Default is bottom center.">legendAnchor</a>;
<a name="l00054"></a><a class="code" href="group__graph_animation.html#ga9a789e5f5d1eeaa5428b940515dd8987">00054</a>     <a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a> <a class="code" href="group__graph_animation.html#ga9a789e5f5d1eeaa5428b940515dd8987" title="A vector giving the displacement of the legend from the edge location.">legendDisplacement</a>;
<a name="l00055"></a>00055 }
<a name="l00056"></a>00056 
<a name="l00059"></a>00059 <span class="keyword">@property</span> (nonatomic, readwrite, copy) <a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *title;
<a name="l00060"></a>00060 <span class="keyword">@property</span> (nonatomic, readwrite, copy) <a class="code" href="interface_c_p_t_text_style.html" title="Immutable wrapper for various text style properties.">CPTTextStyle</a> *titleTextStyle;
<a name="l00061"></a>00061 <span class="keyword">@property</span> (nonatomic, readwrite, assign) <a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a> titleDisplacement;
<a name="l00062"></a>00062 <span class="keyword">@property</span> (nonatomic, readwrite, assign) <a class="code" href="_c_p_t_definitions_8h.html#a0712e0324db4c3da17882ca1d91de7cb" title="Locations around the edge of a rectangle.">CPTRectAnchor</a> titlePlotAreaFrameAnchor;
<a name="l00064"></a>00064 
<a name="l00067"></a><a class="code" href="interface_c_p_t_graph.html#ac12a501c599f4a8b8ebe0e40230c6802">00067</a> <span class="keyword">@property</span> (nonatomic, readwrite, retain) <a class="code" href="interface_c_p_t_axis_set.html" title="A container layer for the set of axes for a graph.">CPTAxisSet</a> *axisSet;
<a name="l00068"></a>00068 <span class="keyword">@property</span> (nonatomic, readwrite, retain) <a class="code" href="interface_c_p_t_plot_area_frame.html" title="A layer drawn on top of the graph layer and behind all plot elements.">CPTPlotAreaFrame</a> *plotAreaFrame;
<a name="l00069"></a><a class="code" href="interface_c_p_t_graph.html#a26cfc91a892e027a0b48f59f9a8cdf0a">00069</a> <span class="keyword">@property</span> (nonatomic, readonly, retain) <a class="code" href="interface_c_p_t_plot_space.html" title="Defines the coordinate system of a plot.">CPTPlotSpace</a> *defaultPlotSpace;
<a name="l00070"></a><a class="code" href="interface_c_p_t_graph.html#a795cc120971f194789cbf5379691707c">00070</a> <span class="keyword">@property</span> (nonatomic, readwrite, retain) <a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/Reference/Reference.html">NSArray</a> *topDownLayerOrder;
<a name="l00072"></a>00072 
<a name="l00075"></a>00075 <span class="keyword">@property</span> (nonatomic, readwrite, retain) <a class="code" href="interface_c_p_t_legend.html" title="A graph legend.">CPTLegend</a> *legend;
<a name="l00076"></a>00076 <span class="keyword">@property</span> (nonatomic, readwrite, assign) <a class="code" href="_c_p_t_definitions_8h.html#a0712e0324db4c3da17882ca1d91de7cb" title="Locations around the edge of a rectangle.">CPTRectAnchor</a> legendAnchor;
<a name="l00077"></a>00077 <span class="keyword">@property</span> (nonatomic, readwrite, assign) <a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a> legendDisplacement;
<a name="l00079"></a>00079 
<a name="l00082"></a>00082 -(void)reloadData;
<a name="l00083"></a>00083 -(void)reloadDataIfNeeded;
<a name="l00085"></a>00085 
<a name="l00088"></a>00088 -(<a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/Reference/Reference.html">NSArray</a> *)allPlots;
<a name="l00089"></a>00089 -(<a class="code" href="interface_c_p_t_plot.html" title="An abstract plot class.">CPTPlot</a> *)plotAtIndex:(<a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>)index;
<a name="l00090"></a>00090 -(<a class="code" href="interface_c_p_t_plot.html" title="An abstract plot class.">CPTPlot</a> *)plotWithIdentifier:(<span class="keywordtype">id</span>&lt;NSCopying&gt;)identifier;
<a name="l00092"></a>00092 
<a name="l00095"></a>00095 -(void)addPlot:(<a class="code" href="interface_c_p_t_plot.html" title="An abstract plot class.">CPTPlot</a> *)plot;
<a name="l00096"></a>00096 -(void)addPlot:(<a class="code" href="interface_c_p_t_plot.html" title="An abstract plot class.">CPTPlot</a> *)plot toPlotSpace:(<a class="code" href="interface_c_p_t_plot_space.html" title="Defines the coordinate system of a plot.">CPTPlotSpace</a> *)space;
<a name="l00097"></a>00097 -(void)removePlot:(<a class="code" href="interface_c_p_t_plot.html" title="An abstract plot class.">CPTPlot</a> *)plot;
<a name="l00098"></a>00098 -(void)removePlotWithIdentifier:(<span class="keywordtype">id</span>&lt;NSCopying&gt;)identifier;
<a name="l00099"></a>00099 -(void)insertPlot:(<a class="code" href="interface_c_p_t_plot.html" title="An abstract plot class.">CPTPlot</a> *)plot atIndex:(<a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>)index;
<a name="l00100"></a>00100 -(void)insertPlot:(<a class="code" href="interface_c_p_t_plot.html" title="An abstract plot class.">CPTPlot</a> *)plot atIndex:(<a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>)index intoPlotSpace:(<a class="code" href="interface_c_p_t_plot_space.html" title="Defines the coordinate system of a plot.">CPTPlotSpace</a> *)space;
<a name="l00102"></a>00102 
<a name="l00105"></a>00105 -(<a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/Reference/Reference.html">NSArray</a> *)allPlotSpaces;
<a name="l00106"></a>00106 -(<a class="code" href="interface_c_p_t_plot_space.html" title="Defines the coordinate system of a plot.">CPTPlotSpace</a> *)plotSpaceAtIndex:(<a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>)index;
<a name="l00107"></a>00107 -(<a class="code" href="interface_c_p_t_plot_space.html" title="Defines the coordinate system of a plot.">CPTPlotSpace</a> *)plotSpaceWithIdentifier:(<span class="keywordtype">id</span>&lt;NSCopying&gt;)identifier;
<a name="l00109"></a>00109 
<a name="l00112"></a>00112 -(void)addPlotSpace:(<a class="code" href="interface_c_p_t_plot_space.html" title="Defines the coordinate system of a plot.">CPTPlotSpace</a> *)space;
<a name="l00113"></a>00113 -(void)removePlotSpace:(<a class="code" href="interface_c_p_t_plot_space.html" title="Defines the coordinate system of a plot.">CPTPlotSpace</a> *)plotSpace;
<a name="l00115"></a>00115 
<a name="l00118"></a>00118 -(void)applyTheme:(<a class="code" href="interface_c_p_t_theme.html" title="Creates a CPTGraph instance formatted with a predefined style.">CPTTheme</a> *)theme;
<a name="l00120"></a>00120 
<a name="l00121"></a>00121 <span class="keyword">@end</span>
<a name="l00122"></a>00122 
<a name="l00123"></a>00123 <span class="preprocessor">#pragma mark -</span>
<a name="l00124"></a>00124 <span class="preprocessor"></span>
<a name="l00128"></a>00128 <span class="keyword">@interface </span><a class="code" href="interface_c_p_t_graph.html" title="An abstract graph class.">CPTGraph</a>(AbstractFactoryMethods)
<a name="l00129"></a>00129 
<a name="l00132"></a>00132 -(<a class="code" href="interface_c_p_t_plot_space.html" title="Defines the coordinate system of a plot.">CPTPlotSpace</a> *)<a class="code" href="interface_c_p_t_graph.html#ad79661155d109f17acf4b39cb11b7a56" title="Creates a new plot space for the graph.">newPlotSpace</a>;
<a name="l00133"></a>00133 -(<a class="code" href="interface_c_p_t_axis_set.html" title="A container layer for the set of axes for a graph.">CPTAxisSet</a> *)<a class="code" href="interface_c_p_t_graph.html#ad29ea84f5fb77006c0d0a6860401450e" title="Creates a new axis set for the graph.">newAxisSet</a>;
<a name="l00135"></a>00135 
<a name="l00136"></a>00136 <span class="keyword">@end</span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_c_p_t_graph_8h.html">CPTGraph.h</a>      </li>

    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a></li>
   </ul>
 </div>


</body>
</html>
